﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Vega.USiteBuilder;
using SPCFMedicineInformer.DocumentTypes.Base;
using SPCFMedicineInformer.Masterpages;

namespace SPCFMedicineInformer.DocumentTypes
{
    [DocumentType(Name = "DetailsForUrlRewrite",
        AllowedTemplates = new string[] { 
                "ContentMedicineCategoryDetails"
                , "ContentMedicineCategory"
                , "ContentMedicineDetails"
                , "ContentGenericDetails"
                , "Admin_Slideshow_Item" 
                ,"ContentSlideshowItem"
        },
        DefaultTemplate =  typeof(ContentMedicineCategory),
        AllowedChildNodeTypes = new Type[] { typeof(DetailsPage) },
        IconUrl = "settingMasterTemplate.gif"
        )]
    public class DetailsPage : Vega.USiteBuilder.DocumentTypeBase
    {
        [DocumentTypeProperty(UmbracoPropertyType.Label, Name = "Important", Description = "Should not be deleted or rename. Used for url rewriting", 
            Tab = Constants.Tabs.Content)]
        public string Important { get; set; }
    }
}
